/**
* Инкапсулирует используемую графическую библиотеку
* @author Yura
*/

#ifndef TGRAPHIC_H
#define TGRAPHIC_H

#include <core/config.h>
#include <iostream>

using namespace std;

class TObject;

class TGraphic{
    map<int,QImage> imagesMap;
    TObject *_object;
    bool _useImages;

public:
    void paint(QPainter&);
    void hide (QPainter&);
    void bindImageWithState(int state, const char * imagePath);

    TGraphic(TObject *object,bool useImages = false){
        _object    = object;
        _useImages = useImages;
    }
};

#endif // TGRAPHIC_H
